
package wsepForum.network.server;

import wsepForum.network.common.IToken;

/**
* A unit of data proccessed by the tokenizer and sent to the GUI controller
* @author Oren Ben-Haim
*
*/
public class GUIToken<T> implements IToken<T> {

	private T gRequest;

	/*****************************
	 * CONSTRUCTOR               *
	 *****************************/
	/**
	 * @param request the request
	 */
	public GUIToken(T request) {
		this.gRequest = request;
	}

	/*****************************
	 * METHODS                   *
	 *****************************/
	/* (non-Javadoc)
	 * @see wsepForum.network.common.IToken#getData()
	 */
	@Override
	public T getData() {
		return this.gRequest;
	}

}
